package com.wetao.lib_common.greendao.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * author: zhouyh
 * created on: 3/26/21 9:47 AM
 * description: http缓存
 */
@Entity
public class HttpCacheItem {

    @Id(autoincrement = true)
    private Long id;

    private String studentId;
    private String url;
    private String params;
    private String response;
    private String token;

    //extentded
    private String insertTime;//插入时间

    @Generated(hash = 813560411)
    public HttpCacheItem(Long id, String studentId, String url, String params,
            String response, String token, String insertTime) {
        this.id = id;
        this.studentId = studentId;
        this.url = url;
        this.params = params;
        this.response = response;
        this.token = token;
        this.insertTime = insertTime;
    }

    @Generated(hash = 1006433344)
    public HttpCacheItem() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStudentId() {
        return this.studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParams() {
        return this.params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getResponse() {
        return this.response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getInsertTime() {
        return this.insertTime;
    }

    public void setInsertTime(String insertTime) {
        this.insertTime = insertTime;
    }
}
